﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SubPolicyDiff.aspx.cs"
    Inherits="Web.SubPolicyDiff" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>难度选择 | 海淀区学校素质评测管理平台</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="js/boxy/stylesheets/boxy.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="js/boxy/javascripts/jquery.boxy.js" type="text/javascript"></script>
    <script src="js/module.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
    function SelectKnowPoint(formid, selectId)
    {
        var selectObj = window.document.forms[formid][selectId];
        var selectIndex = selectObj.selectedIndex;
        if(selectObj.options[selectIndex].value=="")
        {
            alert("请选择一个知识点");
            return false;
        }
        else
        {
            return true;
        }
    }
    
    function AddToSelect(formid,selectId,value,text)
    {
        parent.AddToSelect(formid,selectId,value,text);
    }
    function RemoveSelect(formid, selectId, value)
    {
        parent.RemoveSelect(formid, selectId, value);
    }
    function OnSucceeded(result)
    {
        if (result == "exist")
        {
            alert('已经添加过此难度级别!');
        }
        else if (result == "failure")
        {
             alert('失败!');
        }
    }
    </script>

</head>
<body>
    <div id="main" style="width:600px;">
        <form id="form1" runat="server">
        <div id='block'>
            <div>
                <div>
                    难度
                    <select name="drpOptype" id="drpOptype" runat="server">
                        <option value="=">=</option>
                        <option value="<"><</option>
                        <option value="<="><=</option>
                        <option value=">">></option>
                        <option value="">=">>=</option>
                    </select>
                    <asp:DropDownList ID="drpDiff" runat="server">
                    </asp:DropDownList>
                    的题目占
                    <select name="drpPercent" id="drpPercent" runat="server">
                        <option value="0.05">5%</option>
                        <option value="0.10">10%</option>
                        <option value="0.15">15%</option>
                        <option value="0.20">20%</option>
                        <option value="0.25">25%</option>
                        <option value="0.30">30%</option>
                        <option value="0.35">35%</option>
                        <option value="0.40">40%</option>
                        <option value="0.45">45%</option>
                        <option value="0.50">50%</option>
                        <option value="0.55">55%</option>
                        <option value="0.60">60%</option>
                        <option value="0.65">65%</option>
                        <option value="0.70">70%</option>
                        <option value="0.75">75%</option>
                        <option value="0.80">80%</option>
                        <option value="0.85">85%</option>
                        <option value="0.90">90%</option>
                        <option value="0.95">95%</option>
                        <option value="1.00">100%</option>
                    </select>
                    <asp:Button ID="Button1" runat="server" Text="添加" Width="100px" 
                        onclick="Button1_Click" />
                </div>
            </div>
            <div id="blockcontent">
                <asp:ListView ID="UserLists" runat="server">
                    <LayoutTemplate>
                        <table cellpadding="5" cellspacing="1" border="0" width="580px"  id="userlist">
                            <tr align="center">
                                <th width="10%">
                                    难度级别
                                </th>
                                <th width="25%">
                                    操作符
                                </th>
                                <th width="20%">
                                    百分比
                                </th>
                                <th width="15%">
                                    管理
                                </th>
    
                            </tr>
                            <asp:Label ID="itemPlaceholder" runat="server" Text="Label"></asp:Label></table>
                    </LayoutTemplate>
                    <ItemTemplate>
                        <tr  align="center">
                            <td>
                                <asp:Label ID="lbLeve" runat="server" OnDataBinding="lbLeve_DataBinding" Text='<%# Eval("DiffId")%>'></asp:Label> 
                            </td>
                            <td>
                                <%# Eval("DiffOptionType")%>
                            </td>
                            <td >
                                <%# String.Format("{0:0%}", Eval("DiffTypePercent"))%>
                            </td>
                            
                            <td>
                                <asp:LinkButton ID="lbDelete"  OnClick="lbDelete_Click" CommandArgument='<%# Eval("DiffId")%>' runat="server">删除</asp:LinkButton>
                            </td>
                         </tr>
                        
                    </ItemTemplate>
                </asp:ListView>
            </div>
        </div>
        </form>
    </div>
</body>
</html>
